package com.example.a66666.yuejian.Interface;

import com.example.a66666.yuejian.Bean.ActivityBean;
import com.example.a66666.yuejian.Bean.GameBean;
import com.example.a66666.yuejian.Bean.LoginBean;
import com.example.a66666.yuejian.Bean.MasterBean;
import com.example.a66666.yuejian.Bean.RegisterBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 66666 on 2018/9/25.
 */

public interface RetrofitService {
    @GET("dologin")
    Call<LoginBean> login(@Query("username") String username, @Query("userpass") String password);

    @GET("doregister")
    Call<RegisterBean> register(@Query("username") String username, @Query("userpass") String password);

    @GET("getallactivity")
    Call<List<ActivityBean>> getAllActivity();

    @GET("getallmaster")
    Call<List<MasterBean>> getAllMaster();

    @GET("getallgame")
    Call<List<GameBean>> getAllGame();

    @GET("getactivity")
    Call<ActivityBean> getActivityByID(@Query("id") int activityID);

    @GET("getgame")
    Call<GameBean> getGameByID(@Query("id") int gameID);

    @GET("getmaster")
    Call<MasterBean> getMasterByID(@Query("id") int masterID);

    @GET("collectactivity")
    Call<LoginBean> collectActivity(@Query("uid") int uid, @Query("aid") int aid);

    @GET("iscollectactivity")
    Call<LoginBean> isCollectActivity(@Query("uid") int uid, @Query("aid") int aid);

    @GET("cancelcollectactivity")
    Call<LoginBean> cancelCollectActivity(@Query("uid") int uid, @Query("aid") int aid);

    @GET("iscollectmaster")
    Call<LoginBean> isCollectMaster(@Query("uid") int uid, @Query("mid") int mid);

    @GET("collectmaster")
    Call<LoginBean> collectMaster(@Query("uid") int uid, @Query("mid") int mid);

    @GET("cancelcollectmaster")
    Call<LoginBean> cancelCollectMaster(@Query("uid") int uid, @Query("mid") int mid);

    @GET("iscollectgame")
    Call<LoginBean> isCollectGame(@Query("uid") int uid, @Query("gid") int gid);

    @GET("collectgame")
    Call<LoginBean> collectGame(@Query("uid") int uid, @Query("gid") int gid);

    @GET("cancelcollectgame")
    Call<LoginBean> cancelCollectGame(@Query("uid") int uid, @Query("gid") int gid);


}
